package org.csmzxy.class2333;

public class Example22 {
    public static void main(String[] args){
        int[] sales = new int[] {13,23,43,32,23,12,32,54,32,15};
        int sum = 0;
        for (int i =0;i<sales.length;i++){
            System.out.println("第" + (i+1) + "员工的销售额为" + sales[i]);
            sum += sales[i];
        }
        System.out.println("部门销售总额为" + sum);
    }
}
